﻿namespace SLNGP.Core.Genes
{
    public class ConstantGeneDefinition<T> : IGeneDefinition
    {
        private object _constant;
        public ConstantGeneDefinition(object constant)
        {
            _constant = constant;
        }


        public IGene Create()
        {
            return new ConstantGene<T>(_constant) { GeneDefinition = this };
        }
    }
}